﻿using sMES_Base.service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using sMES_Base;
using ic_card_info_get.Models;
using ic_card_info_get.ORM;
using ic_card_info_get;

namespace ic_card_info_get_C
{
    /// <summary>
	/// 服務[ic_card_info_get]
    /// <auth>Administrator</auth><time>2020/7/2 13:44:51</time>
    /// <description></description>
    /// <list>
    ///     <modify>
    ///         <auth></auth><mantis></mantis><time></time>
    ///         <description></description>
    ///     </modify>
    /// </list>
    /// </summary>
    public class ic_card_info_get_C : BaseService
    {
        public ic_card_info_get_C(ServiceInfo _ServiceInfo) : base(_ServiceInfo)
        {
            this.isValidateSession = false;
        }

        public override ServiceResponse ExecuteImplement(ServiceRequest ServiceRequest, ServiceResponse ServiceResponse)
        {
            REQ_ic_card_info_get _content = ServiceRequest.GetContent<REQ_ic_card_info_get>();
            _content.Validate();
            ic_card_info_get_utility utility = GetUtilities<ic_card_info_get_utility>();
            ORM_TblUsrUserBasis orm = utility.GetUserInfo(_content.IcNo);
            ServiceResponse.Content = orm;
            return ServiceResponse;
        }
    }
}
